package com.itcast.common.constant;

/**
 * 家政项目api路径
 *
 * @author itcast
 * @create 2023/11/7 17:46
 **/
public class Jzo2oApiConstants {
    /**
     * 查询支付单
     */
    public static final String QUERY_TRADING = "/trade/inner/tradings/findTradResultByTradingOrderNo?tradingOrderNo={}";

    /**
     * 创建支付单
     */
    public static final String CREATE_DOWNLINE_TRADING = "/trade/inner/native";

    /**
     * 发送短信验证码
     */
    public static final String SEND_SMS_CODE = "/publics/sms-code/send";

    /**
     * 校验短信验证码
     */
    public static final String SMS_VERIFY = "/publics/inner/sms-code/verify?bussinessType=SERVE_STAFF_LOGIN&phone={}&verifyCode={}";

    /**
     * 退款
     */
    public static final String REFUND_TRADING = "/trade/inner/refund-record/refund?tradingOrderNo={}&refundNo={}&refundAmount={}";

    /**
     * 分页查询优惠券配置
     */
    public static final String PAGE_QUERY_COUPON = "/market/web/coupon/page?";

    /**
     * 查询优惠券配置详情
     */
    public static final String QUERY_COUPON_DETAIL = "/market/web/coupon/{}";

    /**
     * 保存或更新优惠券配置
     */
    public static final String SAVE_OR_UPDATE_COUPON = "/market/web/coupon/save";

    /**
     * 撤销优惠券配置
     */
    public static final String REVOKE_COUPON = "/market/web/coupon/revoke/{}?updateBy={}&updator={}";

    /**
     * 撤销优惠券配置
     */
    public static final String PAGE_QUERY_COUPON_USER_BY_COUPON_ID = "/market/web/coupon-user/page?couponId={}";

    /**
     * 查询当前用户优惠券列表
     */
    public static final String CURRENT_USER_COUPON = "/market/web/coupon-user/my?";

    /**
     * 兑换优惠券
     */
    public static final String REDEEM_COUPON = "/market/web/coupon-user/redeemCoupon";

    /**
     * 兑换优惠券
     */
    public static final String GET_AVAILABLE_COUPON = "/market/web/coupon-user/getAvailable?totalAmount={}&userId={}";

    /**
     * 使用优惠券
     */
    public static final String USE_COUPON = "/market/web/coupon-user/use";

    /**
     * 回退优惠券
     */
    public static final String USE_BACK_COUPON = "/market/web/coupon-user/useBack";
}
